package com.tj.admin.db.dao.impl;
import com.fqgj.common.api.Page;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.tj.admin.db.dao.UploadDetailDao;
import com.tj.admin.db.entity.UploadDetailEntity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* User: anonymous
* Date: 2021-11-10
* Time: 11:39:28.804
*/

@Repository
public class UploadDetailDaoImpl extends AbstractBaseMapper<UploadDetailEntity> implements UploadDetailDao {

    @Override
    public List<UploadDetailEntity> selectListByPage(Page page,String code) {
        Map<String, Object> paramMap = Maps.newHashMap();
        paramMap.put("code", code);
        return getSqlSession().selectList(this.getStatement("selectListByPage"), paramMap);
    }

    @Override
    public Integer selectListCount(String code) {
        Map<String, Object> paramMap = Maps.newHashMap();
        paramMap.put("code", code);
        return getSqlSession().selectOne(this.getStatement("selectListCount"),paramMap);
    }

}